/*
 * @Autor: dc
 * @Date: 2022-03-09 17:26:43
 * @LastEditors: dc
 * @LastEditTime: 2022-03-11 15:07:01
 * @Description: 
 */
import React, { Component } from 'react';

import Item from '../Item';
import './index.css'

class index extends Component {
    render() {
        const { todos, delTodos, checkTodos } = this.props
        return (
            <div className="list">
                {
                    todos.map((item, index) => {
                        return <Item key={item.id} item={item}
                            checkTodos={checkTodos} delTodos={delTodos} />
                    })
                }
            </div>
        );
    }
}

export default (index);